PrintingStatus Object

The PrintingStatus Object provides properties for retrieving information and setting options for the printing status of a report (that is, number of pages, latest page to be printed, etc.). A PrintingStatus Object is obtained from the PrintingStatus property of the Report Object.

PrintingStatus Object Properties

Property Description Read/Write

Application

Returns a reference to the Application Object, that this object is associated with.

Read only

LastestPage
Number

Returns the number of the last page that is currently available. Once the printing is complete, this value is the number of the last page. You will receive an incorrect result if you try to obtain this value immediately after using a method such as ShowNextPage Method (View Object), that causes a change to the preview window. Call the Visual Basic function, DoEvents (see Visual Basic documentation for more information) before requesting the latest page number.

Read only

NumberOfPages

Returns the number of pages in the report.

Read only

Parent

Reference to the Parent object (Report Object).

Read only

Progress

Returns CRPrintingProgress (see table below) indicating the status of printing report (that is, cancelled, in progress, not started, etc.).

Corresponds to PEJobInfo and PEGetJobStatus.

Read only


Constant Value


crPrintingCancelled

5


crPrintingCompleted

3


crPrintingFailed

4


crPrintingHalted

6


crPrintingInProgress

2


crPrintingNotStarted

1

RecordsPrinted

Returns the number of records actually printed. You will receive an incorrect result if you try to obtain this value immediately after using a method such as ShowNextPage Method (View Object), that causes a change to the preview window. Call the Visual Basic function, DoEvents (see Visual Basic documentation for more information) before requesting the records printed.

Read only

RecordsRead

Returns the number of records actually processed.

Read only

RecordsSelected

Returns the number of records selected for inclusion in the report out of the total number of records read.

Read only

Report

Reference to Report Object.

Read only

StartPageNumber

Returns the number of the starting page of preview or printing.

Read only



Seagate Software IMG Holdings, Inc.
http://www.seagatesoftware.com
Support services:
http://support.seagatesoftware.com